package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.PayPwdManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RestController
@RequestMapping(value = "payPwdManagement")
public class PayPwdManagementController {

    @Autowired
    PayPwdManagementService payPwdManagementService;

    /**
     *新增或编辑支付密码
     * @return
     * @throws Exception
     */
    @RequestMapping("addOrEditPayPwd")
    public ResponseParams<?> addOrEditPayPwd() throws Exception {
        return payPwdManagementService.addOrEditPayPwd();
    }

    /**
     *获取短信验证码
     * @return
     * @throws Exception
     */
    @RequestMapping("getVailCode")
    public ResponseParams<?> getVailCode() throws Exception {
        return payPwdManagementService.getVailCode();
    }

}
